import { request } from './request'
// 台账下拉公司
export const getcomany = () => request.post('/cityHrz/findComForHrzJiancha');
// 公司下站点
export const getHrz = (comID: number, type: number) => request.post('/cityHrz/findName', { comID, type });
// 查询换热站或机组
export const getQuery = (page: number, limit: number, comID: number, type: number, search: string,equipID:number) => request.post('/cityHrz/findHRZorJZ', { page, limit, comID, type, search,equipID })
// 查询换热站设备详情
export const getEquipmentDetail = (equipmentID: number) => request.post('/cityHrz/GetEquipmentDetail', { equipmentID })
// 查询机组详情
export const getEquipmentDetailJZ = (equipmentID: number) => request.post('/cityHrz/EquipmentDetailForJZ', { equipmentID })
// 更改换热站信息
export const editHrz = (data:any) =>request.post('/cityHrz/updateHRZ',{...data})
// 更改换热站信息
export const editJZ = (data:any) =>request.post('/cityHrz/updateJIZU',{...data})
// 查询机泵信息
export const getJB = (equipmentID: number) =>request.post('/cityHrz/EquipmentDetailForJB',{equipmentID})